<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Model;

class AgentAccount extends Model
{
	use HasDateTimeFormatter;
    use SoftDeletes;

    protected $table = 'agent_accounts';

    public $fillable = [
        'agent_id',
        'balance',
        'profits',
        'withdrawed',
        'bank_receiver',
        'bank_name',
        'bank_number',
        'ali_account',
        'ali_qr',
        'wx_receiver',
        'wx_receiver',
        'edit_code',
        
    ];

    public function agent(){
        return $this->belongsTo(Agent::class);
    }
    
}
